package calao;

import calao.storage.Field;
import calao.storage.Table;
import calao.storage.Storage;

public class Job 
implements java.io.Serializable
{
	
	static final Table TABLE = new Table("calao.Job"); 

	static final Field<Integer> WORKSPACE_ID = 
		TABLE.createField("wsId", Field.INTEGER);	

	static final Field<Integer> JOB_ID = 
		TABLE.createField("jobId", Field.INTEGER);	

	static final Field<Long> START_TIME = 
		TABLE.createField("startTime", Field.LONG);	

	static {
		TABLE.createPrimaryKeyIndex(WORKSPACE_ID, JOB_ID);
		TABLE.createIndex(START_TIME);
	}

	final Storage storage;
	final int id;

	Job(Storage storage, int id)
	{
		this.storage = storage;
		this.id = id;
	}
	
	public void save()
	{
		// TODO
	}
			
}
